package com.hui.security.log.controller;

import com.hui.security.common.response.ResultMapper;
import com.hui.security.common.response.ResultVO;
import com.hui.security.log.service.OperatorLogService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.extern.slf4j.Slf4j;
import org.apache.ibatis.annotations.Param;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.MediaType;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

/**
 * <b><code>LogContoller</code></b>
 * <p/>
 * Description:
 * <p/>
 * <b>Creation Time:</b> 2019/1/5 12:19.
 *
 * @author HuWeihui
 */
@RestController
@RequestMapping("/v1")
@Api(value = "日志-用户日志API", tags = "logs")
@Slf4j
public class OperatorLogContoller {
    @Autowired
    private OperatorLogService operatorLogService;

    /**
     * List login log result vo.
     *
     * @param appId  the app id
     * @param userId the user id
     * @param type   the type
     * @return the result vo
     * @author : Hu weihui
     * @since hui_project v1
     */
    @ApiOperation(value = "查询用户登录日志", produces = MediaType.APPLICATION_JSON_UTF8_VALUE)
    @GetMapping("/userlog")
    public ResultVO listLoginLog(@RequestParam String appId, @RequestParam String userId, @RequestParam Integer type) {
        return ResultMapper.ok();
    }
}
